#pragma once
#include "GameControl.h"
#include "MyImage.h"

class CGameRadioButton : public CGameControl
{
public:
	CGameRadioButton(void);
	~CGameRadioButton(void);

	void LoadResFromDir(const string& rkDir);
	void LoadResFromFile(const string& rkFile);

	virtual bool OnLeftBtnDown(int iX,int iY);
	virtual bool OnLeftBtnUp(int iX,int iY);
	virtual void OnDraw();

	void SetChecked(bool bChecked);
	bool GetChecked();

	void SetGroupName(const string& rkName);
	const string& GetGroupName();

protected:
	CMyImage m_kUnCheckedNormal;
	CMyImage m_kUnCheckedFocus;
	CMyImage m_kUnCheckedClick;
	CMyImage m_kUnCheckedDisable;
	CMyImage m_kCheckedNormal;
	CMyImage m_kCheckedFocus;
	CMyImage m_kCheckedClick;
	CMyImage m_kCheckedDisable;

	bool m_bChecked;
	string m_kGroupName;
};
